<!DOCTYPE html>
<html lang="cs">
	<head>
		<meta charset="utf-8" />
		<title>Příklad 3-7</title>
		<meta name="author" content="Daniel Bielczyk" />
	</head>
	<body style="margin: 0; padding: 0;">
		
		<canvas width="400" height="400" id="canvas"></canvas>
    
<script>

var canvas = document.getElementById("canvas");
var context = canvas.getContext("2d");

context.scale(2, 1);
context.rotate(Math.PI / 2); //rotace o 90 stupňů
context.fillRect(10, -55, 100, 50);

</script>
		
	</body>
</html>